package io.github.talelin.latticy.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 支付拒绝记录DO
 */
@Data
@TableName("payment_reject_record")
public class PaymentRejectRecordDO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 拒绝原因
     */
    @TableField("reject_reason")
    private String rejectReason;

    /**
     * 实际收到的金额
     */
    @TableField("received_amount")
    private BigDecimal receivedAmount;

    /**
     * 期望的金额
     */
    @TableField("expected_amount")
    private BigDecimal expectedAmount;

    /**
     * 拒绝时间
     */
    @TableField("reject_time")
    private LocalDateTime rejectTime;

    /**
     * 拒绝人ID
     */
    @TableField("reject_by")
    private Long rejectBy;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    // TODO: 等数据库表升级后再启用delete字段
    // /**
    //  * 删除标记
    //  */
    // @TableField("`delete`")
    // private Integer delete;
} 